/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.techshop.service.impl;

import com.techshop.dao.ReceiptNoteDetailDao;
import com.techshop.model.ReceiptNoteDetail;
import com.techshop.service.ReceiptNoteDetailService;

/**
 *
 * @author Hai-PC
 */
public class ReceiptNoteDetailServiceImpl implements ReceiptNoteDetailService
{    
    private ReceiptNoteDetailDao receiptNoteDetailDao;

    @Override
    public ReceiptNoteDetail getById(int receiptNoteDetailID)
    {
        return receiptNoteDetailDao.getById(receiptNoteDetailID);
    }

    @Override
    public boolean insert(ReceiptNoteDetail receiptNoteDetail)
    {
        return receiptNoteDetailDao.insert(receiptNoteDetail);
    }

    @Override
    public boolean update(ReceiptNoteDetail receiptNoteDetail)
    {
        return receiptNoteDetailDao.update(receiptNoteDetail);
    }

    @Override
    public boolean delete(ReceiptNoteDetail receiptNoteDetail)
    {
        return receiptNoteDetailDao.delete(receiptNoteDetail);
    }

    /**
     * @return the receiptNoteDetailDao
     */
    public ReceiptNoteDetailDao getReceiptNoteDetailDao()
    {
        return receiptNoteDetailDao;
    }

    /**
     * @param receiptNoteDetailDao the receiptNoteDetailDao to set
     */
    public void setReceiptNoteDetailDao(ReceiptNoteDetailDao receiptNoteDetailDao)
    {
        this.receiptNoteDetailDao = receiptNoteDetailDao;
    }
}